package swhx;

class Flex extends Flash {

	public function new(w:Window, s:neko.net.RemotingServer){
		super(w,s);
	}
	
	function onCall(ident:String, params:String):String {
		if(ident == ":flexApplication" && params == ":initialized") {
			untyped swhx.Flash.sync_call(onFlexInitialized);
			return "";
		}
		if(ident == ":flexApplication" && params == ":applicationCreated") {
			untyped swhx.Flash.sync_call(onFlexApplicationCreated);
			return "";
		}
		return super.onCall(ident, params);
	}
	
	public function onFlexInitialized() {
	}
		
	public function onFlexApplicationCreated() {
	}
}